var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  console.log(req.query); // 获取get请求的参数
  res.send('nihao jiezhiqi');
  // next();
});

// 注册接口
router.post('/regist', function(req, res, next){
  // req是请求对象
  console.log(req.body); // 接受post请求传递的参数
  res.send('222');
})
module.exports = router;
